﻿using System;

namespace Web.Infrastructure.Mvc.Query.Attributes
{
    [AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
    public class ConditionAttribute : Attribute
    {
        public string Name { get; private set; }

        public string Format { get; private set; }

        public ConditionAttribute(string name, string format)
        {
            this.Name = name;
            this.Format = format;
        }
    }
}